home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / a-interr.ads < prev    next >
Text File  |  1996-01-30  |  2KB  |  56 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --                       A D A . I N T E R R U P T S                        --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.5 $                              --
  10. --                                                                          --
  11. -- This specification is adapted from the Ada Reference Manual for use with --
  12. -- GNAT.  In accordance with the copyright of that document, you can freely --
  13. -- copy and modify this specification,  provided that if you redistribute a --
  14. -- modified version,  any changes that you have made are clearly indicated. --
  15. --                                                                          --
  16. ------------------------------------------------------------------------------
  17.  
  18. with System;
  19.  
  20. package Ada.Interrupts is
  21.  
  22.    type Interrupt_Id is private;
  23.  
  24.    type Parameterless_Handler is
  25.       access protected procedure;
  26.  
  27.    function Is_Reserved (Interrupt : Interrupt_Id)
  28.       return Boolean;
  29.  
  30.    function Is_Attached (Interrupt : Interrupt_Id)
  31.       return Boolean;
  32.  
  33.    function Current_Handler (Interrupt : Interrupt_Id)
  34.       return Parameterless_Handler;
  35.  
  36.    procedure Attach_Handler
  37.       (New_Handler : Parameterless_Handler;
  38.        Interrupt   : Interrupt_Id);
  39.  
  40.    procedure Exchange_Handler
  41.       (Old_Handler : out Parameterless_Handler;
  42.        New_Handler : Parameterless_Handler;
  43.        Interrupt   : Interrupt_Id);
  44.  
  45.    procedure Detach_Handler
  46.       (Interrupt : Interrupt_Id);
  47.  
  48.    function Reference (Interrupt : Interrupt_Id)
  49.       return System.Address;
  50.  
  51. private
  52.  
  53.    type Interrupt_Id is new Natural;
  54.  
  55. end Ada.Interrupts;
  56.